import {
  mapGetters
} from 'vuex'

module.exports = {
  data() {
    return {

    }
  },
  computed: {
    ...mapGetters('user', ['account', 'role', 'userName']),
  },
  methods: {
    authorityManagement() {
      if (this.role === 'youke' || this.role === '') {
         this.$message.warning('请先登录!')
         return true
      }
    },
    info() {
      const h = this.$createElement;
      this.$info({
        // title: 'This is a notification message',
        content: h('div', {}, [
          h('p', '该功能暂未开放'),
        ]),
        onOk() { },
      });
    },
  }
}